<?php
/**
 * Created by PhpStorm
 * User: Jhinwy
 * Date: 7/24/24
 * Time: 10:59 AM
 */

namespace app\common\model\pop;


use app\common\model\auth\Admin;
use app\common\model\BaseModel;



/**
 * Class Order
 * @package app\common\model
 */
class Pop extends BaseModel
{

    protected $name = 'pop';

    public function getAdminNameAttr($value, $data)
    {
        return Admin::where('id', $data['admin_id'])->value('name');
    }
}
